package com.mate.cloud.uid.controller;


import com.mate.cloud.core.response.BaseResponse;
import com.mate.cloud.core.web.controller.AdminBaseController;
import com.mate.cloud.uid.domain.Order;
import com.mate.cloud.uid.service.OrderService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

/**
 * 短信验证码
 *
 * @author: MI
 * @email: 448341911@qq.com
 * @createTime: 2024/5/24 19:08
 * @updateUser: MI
 * @updateTime: 2024/5/24 19:08
 * @updateRemark: 修改内容
 * @version: v1.0
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/order")
public class OrderController extends AdminBaseController {



    private final OrderService orderService;

    @PostMapping("/save")
    public BaseResponse save(@RequestBody Order order) {
        return successBodyResponse(orderService.saveOrder(order));
    }

}
